package com.car.account.service;

import com.car.account.controller.form.userForm.UserCodeLoginForm;
import com.car.account.controller.form.userForm.UserCodeRegisterForm;
import com.car.account.controller.form.userForm.UserPassLoginForm;
import com.car.account.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.car.account.param.userParam.UserRealNameParam;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 董旭
 * @since 2024-08-28
 */
public interface UserService extends IService<User> {

    Integer userPassLogin(UserPassLoginForm form) throws Exception;

    void sendUserLoginCode(String userPhone) throws Exception;

    Integer userCodeLogin(UserCodeLoginForm form) throws Exception;

    void sendUserRegisterCode(String userPhone) throws Exception;

    void userCodeRegister(UserCodeRegisterForm form) throws Exception;

    void userRealName(UserRealNameParam param) throws Exception;

    void updateUserPhoneById(Integer userId, String userPhone) throws Exception;

    void updateUserPassById(Integer userId, String userPass) throws Exception;

    String userUpdateImage(MultipartFile mf, Integer userId) throws Exception;

    String userUpdateNickname(String userNickname, Integer userId) throws Exception;
}
